import java.util.Scanner;
import java.util.Locale;

public class Media2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner (System.in);
        Locale.setDefault(Locale.US);

        double notaA = scan.nextDouble();
        double notaB = scan.nextDouble();
        double notaC = scan.nextDouble();

        double media = ((notaA * 2) + (notaB * 3)+ (notaC * 5))/10;
        System.out.printf("MEDIA = %.1f\n", media);

        scan.close();
    }
}
